.class public Lcom/xingbook/park/activity/HomeActivity;
.super Lcom/xingbook/park/activity/BaseFragmentActivity;

# interfaces
.implements Lcom/xingbook/service/download/f;


# static fields
.field private static c:Lcom/xingbook/park/activity/HomeActivity;


# instance fields
.field private d:Lcom/xingbook/park/ui/f;

.field private e:Landroid/app/ProgressDialog;

.field private f:Landroid/widget/RelativeLayout;

.field private g:Lcom/xingbook/park/ui/j;

.field private h:Lcom/xingbook/park/ui/l;

.field private i:Lcom/xingbook/park/ui/p;

.field private j:Landroid/widget/FrameLayout;

.field private k:Lcom/xingbook/park/ui/bi;

.field private l:Lcom/xingbook/park/fragment/r;

.field private m:Lcom/xingbook/park/ui/n;

.field private n:Lcom/xingbook/park/ui/k;

.field private o:Lcom/xingbook/park/ui/r;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/4 v0, 0x0

    sput-object v0, Lcom/xingbook/park/activity/HomeActivity;->c:Lcom/xingbook/park/activity/HomeActivity;

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/xingbook/park/activity/BaseFragmentActivity;-><init>()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->d:Lcom/xingbook/park/ui/f;

    new-instance v0, Lcom/xingbook/park/activity/z;

    invoke-direct {v0, p0}, Lcom/xingbook/park/activity/z;-><init>(Lcom/xingbook/park/activity/HomeActivity;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->m:Lcom/xingbook/park/ui/n;

    new-instance v0, Lcom/xingbook/park/activity/aa;

    invoke-direct {v0, p0}, Lcom/xingbook/park/activity/aa;-><init>(Lcom/xingbook/park/activity/HomeActivity;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->n:Lcom/xingbook/park/ui/k;

    new-instance v0, Lcom/xingbook/park/activity/ab;

    invoke-direct {v0, p0}, Lcom/xingbook/park/activity/ab;-><init>(Lcom/xingbook/park/activity/HomeActivity;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->o:Lcom/xingbook/park/ui/r;

    return-void
.end method

.method public static a()Landroid/app/Activity;
    .locals 1

    sget-object v0, Lcom/xingbook/park/activity/HomeActivity;->c:Lcom/xingbook/park/activity/HomeActivity;

    return-object v0
.end method

.method static synthetic a(Lcom/xingbook/park/activity/HomeActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/xingbook/park/activity/HomeActivity;->e()V

    return-void
.end method

.method static synthetic a(Lcom/xingbook/park/activity/HomeActivity;Lcom/xingbook/park/fragment/r;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/park/activity/HomeActivity;->l:Lcom/xingbook/park/fragment/r;

    return-void
.end method

.method public static b()Landroid/content/Context;
    .locals 1

    sget-object v0, Lcom/xingbook/park/activity/HomeActivity;->c:Lcom/xingbook/park/activity/HomeActivity;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :cond_0
    sget-object v0, Lcom/xingbook/park/activity/HomeActivity;->c:Lcom/xingbook/park/activity/HomeActivity;

    invoke-virtual {v0}, Lcom/xingbook/park/activity/HomeActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    goto :goto_0
.end method

.method static synthetic b(Lcom/xingbook/park/activity/HomeActivity;)Lcom/xingbook/park/fragment/r;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->l:Lcom/xingbook/park/fragment/r;

    return-object v0
.end method

.method private e()V
    .locals 6

    const/16 v4, 0x8

    const/4 v0, 0x1

    const/4 v2, 0x0

    const/4 v1, 0x0

    iget-object v3, p0, Lcom/xingbook/park/activity/HomeActivity;->l:Lcom/xingbook/park/fragment/r;

    instance-of v3, v3, Lcom/xingbook/park/fragment/HomeLeyuanFragment;

    if-eqz v3, :cond_1

    const-string v0, "\u5b66\u4e60\u4e50\u56ed"

    move v1, v2

    move v3, v2

    :goto_0
    if-nez v0, :cond_0

    const-string v0, ""

    :cond_0
    if-eqz v3, :cond_4

    invoke-virtual {p0}, Lcom/xingbook/park/activity/HomeActivity;->d()V

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->k:Lcom/xingbook/park/ui/bi;

    invoke-virtual {v0, v2}, Lcom/xingbook/park/ui/bi;->setVisibility(I)V

    :goto_1
    if-eqz v1, :cond_5

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->h:Lcom/xingbook/park/ui/l;

    invoke-virtual {v0, v2}, Lcom/xingbook/park/ui/l;->setVisibility(I)V

    :goto_2
    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->i:Lcom/xingbook/park/ui/p;

    invoke-virtual {v0}, Lcom/xingbook/park/ui/p;->c()V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/HomeActivity;->getSupportFragmentManager()Landroid/support/v4/app/FragmentManager;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/FragmentManager;->beginTransaction()Landroid/support/v4/app/FragmentTransaction;

    move-result-object v1

    const v2, 0x7f0a001b

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->l:Lcom/xingbook/park/fragment/r;

    check-cast v0, Landroid/support/v4/app/Fragment;

    invoke-virtual {v1, v2, v0}, Landroid/support/v4/app/FragmentTransaction;->replace(ILandroid/support/v4/app/Fragment;)Landroid/support/v4/app/FragmentTransaction;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/FragmentTransaction;->commitAllowingStateLoss()I

    return-void

    :cond_1
    iget-object v3, p0, Lcom/xingbook/park/activity/HomeActivity;->l:Lcom/xingbook/park/fragment/r;

    instance-of v3, v3, Lcom/xingbook/park/fragment/HomeTodayFragment;

    if-eqz v3, :cond_2

    const-string v1, "\u6bcf\u65e5\u63a8\u8350"

    move v3, v0

    move v5, v0

    move-object v0, v1

    move v1, v5

    goto :goto_0

    :cond_2
    iget-object v3, p0, Lcom/xingbook/park/activity/HomeActivity;->l:Lcom/xingbook/park/fragment/r;

    instance-of v3, v3, Lcom/xingbook/park/fragment/HomeGroupFragment;

    if-eqz v3, :cond_3

    const-string v0, "\u5708\u5b50"

    move v1, v2

    move v3, v2

    goto :goto_0

    :cond_3
    iget-object v3, p0, Lcom/xingbook/park/activity/HomeActivity;->l:Lcom/xingbook/park/fragment/r;

    instance-of v3, v3, Lcom/xingbook/park/fragment/HomeMineFragment;

    if-eqz v3, :cond_6

    const-string v0, "\u6211"

    move v1, v2

    move v3, v2

    goto :goto_0

    :cond_4
    iget-object v3, p0, Lcom/xingbook/park/activity/HomeActivity;->k:Lcom/xingbook/park/ui/bi;

    invoke-virtual {v3, v4}, Lcom/xingbook/park/ui/bi;->setVisibility(I)V

    iget-object v3, p0, Lcom/xingbook/park/activity/HomeActivity;->h:Lcom/xingbook/park/ui/l;

    invoke-virtual {v3, v0}, Lcom/xingbook/park/ui/l;->setTitle(Ljava/lang/String;)V

    goto :goto_1

    :cond_5
    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->h:Lcom/xingbook/park/ui/l;

    invoke-virtual {v0, v4}, Lcom/xingbook/park/ui/l;->setVisibility(I)V

    goto :goto_2

    :cond_6
    move v3, v2

    move v5, v0

    move-object v0, v1

    move v1, v5

    goto :goto_0
.end method

.method private f()V
    .locals 3

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->d:Lcom/xingbook/park/ui/f;

    invoke-virtual {v0}, Lcom/xingbook/park/ui/f;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->d:Lcom/xingbook/park/ui/f;

    invoke-virtual {v0}, Lcom/xingbook/park/ui/f;->a()V

    :goto_0
    return-void

    :cond_0
    invoke-static {}, Lcom/xingbook/ting/play/j;->a()Lcom/xingbook/ting/play/j;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/park/activity/HomeActivity;->d:Lcom/xingbook/park/ui/f;

    if-eqz v0, :cond_1

    iget-object v0, v0, Lcom/xingbook/ting/play/j;->g:Lcom/xingbook/ting/play/g;

    sget-object v2, Lcom/xingbook/ting/play/g;->d:Lcom/xingbook/ting/play/g;

    if-ne v0, v2, :cond_1

    const/4 v0, 0x1

    :goto_1
    invoke-virtual {v1, v0}, Lcom/xingbook/park/ui/f;->a(Z)V

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    goto :goto_1
.end method


# virtual methods
.method public a(Lcom/xingbook/park/fragment/r;)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->l:Lcom/xingbook/park/fragment/r;

    invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->i:Lcom/xingbook/park/ui/p;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/xingbook/park/ui/p;->a(Ljava/lang/String;)V

    :cond_0
    return-void
.end method

.method public a(Lcom/xingbook/park/fragment/r;Ljava/lang/String;)V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->l:Lcom/xingbook/park/fragment/r;

    invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->i:Lcom/xingbook/park/ui/p;

    invoke-virtual {v0, p2}, Lcom/xingbook/park/ui/p;->b(Ljava/lang/String;)V

    :cond_0
    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 2

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->e:Landroid/app/ProgressDialog;

    if-nez v0, :cond_0

    new-instance v0, Landroid/app/ProgressDialog;

    invoke-direct {v0, p0}, Landroid/app/ProgressDialog;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->e:Landroid/app/ProgressDialog;

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->e:Landroid/app/ProgressDialog;

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setCanceledOnTouchOutside(Z)V

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->e:Landroid/app/ProgressDialog;

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setCancelable(Z)V

    :cond_0
    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->e:Landroid/app/ProgressDialog;

    invoke-virtual {v0, p1}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->e:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->isShowing()Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->e:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->show()V

    :cond_1
    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V
    .locals 1

    invoke-static {p0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/n;->j()Lcom/xingbook/service/download/b;

    move-result-object v0

    invoke-virtual {v0, p1, p2, p3, p4}, Lcom/xingbook/service/download/b;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V

    return-void
.end method

.method public b(Lcom/xingbook/park/fragment/r;)V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->l:Lcom/xingbook/park/fragment/r;

    invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->i:Lcom/xingbook/park/ui/p;

    invoke-virtual {v0}, Lcom/xingbook/park/ui/p;->b()V

    :cond_0
    return-void
.end method

.method public c()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->e:Landroid/app/ProgressDialog;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->e:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->e:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V

    :cond_0
    return-void
.end method

.method public d()V
    .locals 6

    sget-object v0, Lcom/xingbook/c/n;->e:Lcom/xingbook/b/a;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/xingbook/b/a;->e()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/xingbook/park/activity/HomeActivity;->k:Lcom/xingbook/park/ui/bi;

    invoke-virtual {v0}, Lcom/xingbook/b/a;->b()Ljava/lang/String;

    move-result-object v3

    const-string v4, "http://app2.xingbook.com/sto/icon/c/${orid}.jpg"

    const-string v5, "${orid}"

    iget-object v0, v0, Lcom/xingbook/b/a;->C:Ljava/lang/String;

    invoke-virtual {v4, v5, v0}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v1, v3, v0}, Lcom/xingbook/park/ui/bi;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->k:Lcom/xingbook/park/ui/bi;

    const-string v1, "\u672a\u767b\u5f55"

    const-string v2, "\u5b9d\u5b9d-\u672a\u8bbe\u7f6e\u5e74\u9f84"

    const-string v3, ""

    invoke-virtual {v0, v1, v2, v3}, Lcom/xingbook/park/ui/bi;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 9

    const v7, 0x7f0a001a

    const/4 v6, -0x1

    const/4 v4, 0x0

    invoke-virtual {p0}, Lcom/xingbook/park/activity/HomeActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x80

    invoke-virtual {v0, v1}, Landroid/view/Window;->addFlags(I)V

    sput-object p0, Lcom/xingbook/park/activity/HomeActivity;->c:Lcom/xingbook/park/activity/HomeActivity;

    invoke-virtual {p0}, Lcom/xingbook/park/activity/HomeActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v8

    new-instance v0, Landroid/widget/RelativeLayout;

    invoke-direct {v0, v8}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->f:Landroid/widget/RelativeLayout;

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->f:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v6}, Landroid/widget/RelativeLayout;->setBackgroundColor(I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->f:Landroid/widget/RelativeLayout;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/activity/HomeActivity;->setContentView(Landroid/view/View;)V

    iget-object v1, p0, Lcom/xingbook/park/activity/HomeActivity;->f:Landroid/widget/RelativeLayout;

    invoke-static {p0}, Lcom/xingbook/c/n;->b(Landroid/app/Activity;)F

    move-result v2

    iget-object v3, p0, Lcom/xingbook/park/activity/HomeActivity;->m:Lcom/xingbook/park/ui/n;

    move-object v0, p0

    move v5, v4

    invoke-static/range {v0 .. v5}, Lcom/xingbook/park/ui/l;->a(Landroid/app/Activity;Landroid/widget/RelativeLayout;FLcom/xingbook/park/ui/n;ZZ)Lcom/xingbook/park/ui/l;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->h:Lcom/xingbook/park/ui/l;

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->h:Lcom/xingbook/park/ui/l;

    const v1, 0x7f0a0019

    invoke-virtual {v0, v1}, Lcom/xingbook/park/ui/l;->setId(I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->f:Landroid/widget/RelativeLayout;

    invoke-static {p0}, Lcom/xingbook/c/n;->f(Landroid/app/Activity;)F

    move-result v1

    iget-object v2, p0, Lcom/xingbook/park/activity/HomeActivity;->n:Lcom/xingbook/park/ui/k;

    invoke-static {p0, v0, v1, v2}, Lcom/xingbook/park/ui/j;->a(Landroid/app/Activity;Landroid/widget/RelativeLayout;FLcom/xingbook/park/ui/k;)Lcom/xingbook/park/ui/j;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->g:Lcom/xingbook/park/ui/j;

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->g:Lcom/xingbook/park/ui/j;

    invoke-virtual {v0, v7}, Lcom/xingbook/park/ui/j;->setId(I)V

    new-instance v0, Landroid/widget/FrameLayout;

    invoke-direct {v0, v8}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->j:Landroid/widget/FrameLayout;

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->j:Landroid/widget/FrameLayout;

    const v1, 0x7f0a001b

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setId(I)V

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v0, v6, v6}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/4 v1, 0x3

    iget-object v2, p0, Lcom/xingbook/park/activity/HomeActivity;->h:Lcom/xingbook/park/ui/l;

    invoke-virtual {v2}, Lcom/xingbook/park/ui/l;->getId()I

    move-result v2

    invoke-virtual {v0, v1, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    const/4 v1, 0x2

    iget-object v2, p0, Lcom/xingbook/park/activity/HomeActivity;->g:Lcom/xingbook/park/ui/j;

    invoke-virtual {v2}, Lcom/xingbook/park/ui/j;->getId()I

    move-result v2

    invoke-virtual {v0, v1, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    iget-object v1, p0, Lcom/xingbook/park/activity/HomeActivity;->j:Landroid/widget/FrameLayout;

    invoke-virtual {v1, v0}, Landroid/widget/FrameLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v1, p0, Lcom/xingbook/park/activity/HomeActivity;->f:Landroid/widget/RelativeLayout;

    iget-object v2, p0, Lcom/xingbook/park/activity/HomeActivity;->j:Landroid/widget/FrameLayout;

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    iget-object v1, p0, Lcom/xingbook/park/activity/HomeActivity;->f:Landroid/widget/RelativeLayout;

    invoke-static {p0}, Lcom/xingbook/c/n;->b(Landroid/app/Activity;)F

    move-result v2

    iget-object v3, p0, Lcom/xingbook/park/activity/HomeActivity;->o:Lcom/xingbook/park/ui/r;

    invoke-static {p0, v1, v2, v3}, Lcom/xingbook/park/ui/p;->a(Landroid/app/Activity;Landroid/widget/RelativeLayout;FLcom/xingbook/park/ui/r;)Lcom/xingbook/park/ui/p;

    move-result-object v1

    iput-object v1, p0, Lcom/xingbook/park/activity/HomeActivity;->i:Lcom/xingbook/park/ui/p;

    iget-object v1, p0, Lcom/xingbook/park/activity/HomeActivity;->i:Lcom/xingbook/park/ui/p;

    invoke-virtual {v1, v0}, Lcom/xingbook/park/ui/p;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    new-instance v0, Lcom/xingbook/park/ui/bi;

    invoke-static {p0}, Lcom/xingbook/c/n;->b(Landroid/app/Activity;)F

    move-result v1

    new-instance v2, Lcom/xingbook/park/activity/ac;

    invoke-direct {v2, p0}, Lcom/xingbook/park/activity/ac;-><init>(Lcom/xingbook/park/activity/HomeActivity;)V

    invoke-direct {v0, v8, v1, v2, v4}, Lcom/xingbook/park/ui/bi;-><init>(Landroid/content/Context;FLcom/xingbook/park/ui/bj;Z)V

    iput-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->k:Lcom/xingbook/park/ui/bi;

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->k:Lcom/xingbook/park/ui/bi;

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    iget-object v2, p0, Lcom/xingbook/park/activity/HomeActivity;->k:Lcom/xingbook/park/ui/bi;

    invoke-virtual {v2}, Lcom/xingbook/park/ui/bi;->getRealHeight()I

    move-result v2

    invoke-direct {v1, v6, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1}, Lcom/xingbook/park/ui/bi;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->f:Landroid/widget/RelativeLayout;

    iget-object v1, p0, Lcom/xingbook/park/activity/HomeActivity;->k:Lcom/xingbook/park/ui/bi;

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/HomeActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    iget-object v2, p0, Lcom/xingbook/park/activity/HomeActivity;->f:Landroid/widget/RelativeLayout;

    invoke-static {p0}, Lcom/xingbook/c/n;->b(Landroid/app/Activity;)F

    move-result v3

    move v5, v4

    move v6, v4

    invoke-static/range {v1 .. v7}, Lcom/xingbook/park/ui/a;->a(Landroid/content/Context;Landroid/widget/RelativeLayout;FIIII)Lcom/xingbook/park/ui/a;

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->f:Landroid/widget/RelativeLayout;

    invoke-static {p0}, Lcom/xingbook/c/n;->b(Landroid/app/Activity;)F

    move-result v1

    invoke-static {p0}, Lcom/xingbook/c/c;->a(Landroid/app/Activity;)Lcom/xingbook/park/ui/g;

    move-result-object v2

    invoke-static {v0, p0, v1, v2}, Lcom/xingbook/park/ui/f;->a(Landroid/widget/RelativeLayout;Landroid/content/Context;FLcom/xingbook/park/ui/g;)Lcom/xingbook/park/ui/f;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->d:Lcom/xingbook/park/ui/f;

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->d:Lcom/xingbook/park/ui/f;

    invoke-virtual {v0}, Lcom/xingbook/park/ui/f;->a()V

    new-instance v0, Lcom/xingbook/park/fragment/HomeTodayFragment;

    invoke-direct {v0}, Lcom/xingbook/park/fragment/HomeTodayFragment;-><init>()V

    iput-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->l:Lcom/xingbook/park/fragment/r;

    invoke-super {p0, p1}, Lcom/xingbook/park/activity/BaseFragmentActivity;->onCreate(Landroid/os/Bundle;)V

    const/4 v0, 0x0

    invoke-static {}, Lcom/xingbook/c/c;->a()Z

    move-result v1

    if-eqz v1, :cond_0

    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/xingbook/huiben/activity/HuibenMainActivity;

    invoke-direct {v0, v8, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    :cond_0
    if-eqz v0, :cond_1

    invoke-virtual {p0, v0}, Lcom/xingbook/park/activity/HomeActivity;->startActivity(Landroid/content/Intent;)V

    :goto_0
    return-void

    :cond_1
    invoke-direct {p0}, Lcom/xingbook/park/activity/HomeActivity;->e()V

    goto :goto_0
.end method

.method protected onDestroy()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->e:Landroid/app/ProgressDialog;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->e:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->e:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V

    :cond_0
    const/4 v0, 0x0

    sput-object v0, Lcom/xingbook/park/activity/HomeActivity;->c:Lcom/xingbook/park/activity/HomeActivity;

    invoke-static {p0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/n;->i()V

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseFragmentActivity;->onDestroy()V

    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 1

    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    invoke-direct {p0}, Lcom/xingbook/park/activity/HomeActivity;->f()V

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    invoke-super {p0, p1, p2}, Lcom/xingbook/park/activity/BaseFragmentActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v0

    goto :goto_0
.end method

.method protected onPause()V
    .locals 0

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseFragmentActivity;->onPause()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onPause(Landroid/content/Context;)V

    invoke-static {p0}, Lcom/a/a/g;->a(Landroid/content/Context;)V

    return-void
.end method

.method protected onResume()V
    .locals 7

    const/4 v3, 0x0

    invoke-static {}, Lcom/xingbook/c/c;->a()Z

    move-result v0

    if-nez v0, :cond_0

    invoke-static {p0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/n;->m()I

    move-result v4

    if-lez v4, :cond_0

    invoke-static {p0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1, v3}, Lcom/xingbook/c/n;->a(ILjava/lang/String;)V

    iget-object v1, p0, Lcom/xingbook/park/activity/HomeActivity;->f:Landroid/widget/RelativeLayout;

    invoke-static {p0}, Lcom/xingbook/c/n;->f(Landroid/app/Activity;)F

    move-result v2

    const-string v5, "\u661f\u5e01"

    invoke-static {p0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/n;->n()Ljava/lang/String;

    move-result-object v6

    move-object v0, p0

    invoke-static/range {v0 .. v6}, Lcom/xingbook/park/ui/s;->a(Landroid/app/Activity;Landroid/widget/RelativeLayout;FLjava/lang/String;ILjava/lang/String;Ljava/lang/String;)V

    :cond_0
    invoke-super {p0}, Lcom/xingbook/park/activity/BaseFragmentActivity;->onResume()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onResume(Landroid/content/Context;)V

    invoke-static {p0}, Lcom/a/a/g;->b(Landroid/content/Context;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->i:Lcom/xingbook/park/ui/p;

    invoke-virtual {v0}, Lcom/xingbook/park/ui/p;->a()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/activity/HomeActivity;->o:Lcom/xingbook/park/ui/r;

    invoke-interface {v0}, Lcom/xingbook/park/ui/r;->a()V

    :cond_1
    return-void
.end method
